package cn.kgc.jdbc.utils;

/**
 * @author: mosin
 * @version: v1.0  2022/8/28
 * 状态码 和返回数据信息的枚举类
 */
public enum CodeMsg {

    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败");

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private Integer code;
    private  String msg;

    CodeMsg(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
